package com.woniu.custom.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName zy_conversation
 */
@TableName(value ="zy_conversation")
@Data
public class ZyConversation implements Serializable {
    /**
     * 对话记录id
     */
    @TableId
    private String zyConversationId;

    /**
     * 订单id
     */
    private String zyOrderId;

    /**
     * 售后单id
     */
    private String zyShouhouId;

    /**
     * 客服人员id
     */
    private String zyStaffId;

    /**
     * 对话内容
     */
    private String zyMessage;

    /**
     * 处理时间
     */
    private Date zyDealTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ZyConversation other = (ZyConversation) that;
        return (this.getZyConversationId() == null ? other.getZyConversationId() == null : this.getZyConversationId().equals(other.getZyConversationId()))
            && (this.getZyOrderId() == null ? other.getZyOrderId() == null : this.getZyOrderId().equals(other.getZyOrderId()))
            && (this.getZyShouhouId() == null ? other.getZyShouhouId() == null : this.getZyShouhouId().equals(other.getZyShouhouId()))
            && (this.getZyStaffId() == null ? other.getZyStaffId() == null : this.getZyStaffId().equals(other.getZyStaffId()))
            && (this.getZyMessage() == null ? other.getZyMessage() == null : this.getZyMessage().equals(other.getZyMessage()))
            && (this.getZyDealTime() == null ? other.getZyDealTime() == null : this.getZyDealTime().equals(other.getZyDealTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getZyConversationId() == null) ? 0 : getZyConversationId().hashCode());
        result = prime * result + ((getZyOrderId() == null) ? 0 : getZyOrderId().hashCode());
        result = prime * result + ((getZyShouhouId() == null) ? 0 : getZyShouhouId().hashCode());
        result = prime * result + ((getZyStaffId() == null) ? 0 : getZyStaffId().hashCode());
        result = prime * result + ((getZyMessage() == null) ? 0 : getZyMessage().hashCode());
        result = prime * result + ((getZyDealTime() == null) ? 0 : getZyDealTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", zyConversationId=").append(zyConversationId);
        sb.append(", zyOrderId=").append(zyOrderId);
        sb.append(", zyShouhouId=").append(zyShouhouId);
        sb.append(", zyStaffId=").append(zyStaffId);
        sb.append(", zyMessage=").append(zyMessage);
        sb.append(", zyDealTime=").append(zyDealTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}